package com.qf.service.impl;

import com.qf.dao.LoanapplicationDao;
import com.qf.loanapplication.Loanapplication;
import com.qf.service.LoanapplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoanapplicationServiceImpl implements LoanapplicationService {
    @Autowired
    LoanapplicationDao loanapplicationDao;
    @Override
    public List<Loanapplication> select(Loanapplication registration) {
        List<Loanapplication> select = loanapplicationDao.select(registration);
        return select;
    }

    @Override
    public int insert(Loanapplication registration) {
        int insert = loanapplicationDao.insert(registration);
        return insert;
    }

    @Override
    public int update(Loanapplication registration) {
        int update = loanapplicationDao.update(registration);

        return update;
    }

    @Override
    public int delete(List<Integer> list) {
        int delete = loanapplicationDao.delete(list);
        return delete;
    }
}
